package com.chagee.store.operation.server.facade;

import com.chagee.store.operation.api.request.OrderDeviceInfoRequest;
import com.chagee.store.operation.api.request.OrderInfoRequest;
import com.chagee.store.operation.api.request.StoreInfoRequest;
import com.chagee.store.operation.api.request.StoreOrderDeviceRequest;
import com.chagee.store.operation.api.response.StoreOderDeviceResponse;
import com.chagee.store.operation.server.service.biz.StoreOrderDeviceBizService;


import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @Author : hk
 * @Date : 2024/7/10
 */

@Slf4j
@Service
@RequiredArgsConstructor
public class StoreOrderDeviceFacade {

	@Resource
	private StoreOrderDeviceBizService storeOrderDeviceBizService;


	public List<StoreOderDeviceResponse> deviceConfig(StoreOrderDeviceRequest request) {
		List<StoreOderDeviceResponse> response = storeOrderDeviceBizService.deviceConfig(request);
		return response;
	}

	public Boolean submitDeviceConfig(OrderInfoRequest request) {
		return storeOrderDeviceBizService.submitDeviceConfig(request);
	}

	public String saveDeviceConfig(OrderDeviceInfoRequest request) {
		return storeOrderDeviceBizService.saveDeviceConfig(request);
	}

	public List<StoreOderDeviceResponse> recentlyConfig(StoreInfoRequest request) {
		return storeOrderDeviceBizService.recentlyConfig(request);
	}
}
